package test3.demo1;

import java.util.Arrays;

public class Student {
    private Long id;
    private String name;
    private String gender;
    private java.time.LocalDateTime choiceTime;
    private String[] destinations;

    public Student(Long id, String name, String gender, java.time.LocalDateTime choiceTime, String[] destinations) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.choiceTime = choiceTime;
        this.destinations = destinations;
    }

    // getter方法
    public Long getId() { return id; }
    public String getName() { return name; }
    public String getGender() { return gender; }
    public java.time.LocalDateTime getChoiceTime() { return choiceTime; }
    public String[] getDestinations() { return destinations; }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", choiceTime=" + choiceTime +
                ", destinations=" + Arrays.toString(destinations) +
                '}';
    }
}

